/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Views.GestionRestaurateur;

/**
 *
 * @author ibrahim
 */
public class Utils {
    
    public static String getFileExtension(String name){
        int pointIndex = name.lastIndexOf(".");
        if(pointIndex == -1){
            return null;
        }
        if(pointIndex == name.length()-1){
            return null;
        }
        return name.substring(pointIndex+1, name.length());
    }
    
}
